<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.CreateLiquidacaoDividaTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.CreateLiquidacaoDividaLabel_idLiquidacao}" for="idLiquidacao" />
                    <h:inputText id="idLiquidacao" value="#{liquidacaoDividaController.selected.idLiquidacao}" title="#{bundle.CreateLiquidacaoDividaTitle_idLiquidacao}" required="true" requiredMessage="#{bundle.CreateLiquidacaoDividaRequiredMessage_idLiquidacao}"/>
                    <h:outputLabel value="#{bundle.CreateLiquidacaoDividaLabel_valor}" for="valor" />
                    <h:inputText id="valor" value="#{liquidacaoDividaController.selected.valor}" title="#{bundle.CreateLiquidacaoDividaTitle_valor}" required="true" requiredMessage="#{bundle.CreateLiquidacaoDividaRequiredMessage_valor}"/>
                    <h:outputLabel value="#{bundle.CreateLiquidacaoDividaLabel_detalhe}" for="detalhe" />
                    <h:inputText id="detalhe" value="#{liquidacaoDividaController.selected.detalhe}" title="#{bundle.CreateLiquidacaoDividaTitle_detalhe}" />
                    <h:outputLabel value="#{bundle.CreateLiquidacaoDividaLabel_data}" for="data" />
                    <h:inputText id="data" value="#{liquidacaoDividaController.selected.data}" title="#{bundle.CreateLiquidacaoDividaTitle_data}" required="true" requiredMessage="#{bundle.CreateLiquidacaoDividaRequiredMessage_data}"/>
                    <h:outputLabel value="#{bundle.CreateLiquidacaoDividaLabel_fkDivida}" for="fkDivida" />
                    <h:selectOneMenu id="fkDivida" value="#{liquidacaoDividaController.selected.fkDivida}" title="#{bundle.CreateLiquidacaoDividaTitle_fkDivida}" required="true" requiredMessage="#{bundle.CreateLiquidacaoDividaRequiredMessage_fkDivida}">
                        <f:selectItems value="#{dividasController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.CreateLiquidacaoDividaLabel_fkProc}" for="fkProc" />
                    <h:selectOneMenu id="fkProc" value="#{liquidacaoDividaController.selected.fkProc}" title="#{bundle.CreateLiquidacaoDividaTitle_fkProc}" required="true" requiredMessage="#{bundle.CreateLiquidacaoDividaRequiredMessage_fkProc}">
                        <f:selectItems value="#{processamentoSalarioController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{liquidacaoDividaController.create}" value="#{bundle.CreateLiquidacaoDividaSaveLink}" />
                <br />
                <br />
                <h:commandLink action="#{liquidacaoDividaController.prepareList}" value="#{bundle.CreateLiquidacaoDividaShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.CreateLiquidacaoDividaIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
